﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/style.css" />
    <link href="~/css/img.css" rel="stylesheet" />
    <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
    <link href="~/bootstrap-star-rating-master/css/star-rating.css" rel="stylesheet" type="text/css" />
    <script src="~/bootstrap-star-rating-master/js/star-rating.js" type="text/javascript"></script>
    <title>报修管理</title>

</head>
<body class="bb1">
    <div align=center class="d1">
        <marquee style="FONT-SIZE: 35pt; WIDTH: 400px; FILTER: shadow(color=#AF0530); LINE-HEIGHT:15pt; FONT-FAMILY: 隶书; HEIGHT: 80px" scrollamount=6>
            <h2 style="margin-top:0px;text-align:center"><font color=#f90b46>报修管理 </font></h2>
        </marquee>
    </div>
    <div class="page-container">
        <div class="text-c" style="margin-top:50px; ">
            <form action="/Repairs/RepairManage" method="post">
                报修名称：<input type="text" name="txtName" />

                报修时间：<input type="text" name="txtdate" onfocus="WdatePicker({ dateFmt: 'yyyy-MM-dd', maxDate: '#F{$dp.$D(\'datemin\')||\'%y-%M-%d \'}' })" id="datemin" class="input-text Wdate" style="width:120px;">

                维修装态：<select name="txtState">
                    <option value="">请选择</option>
                    <option value="0">无</option>
                    <option value="1">已接单</option>
                    <option value="2">维修中</option>
                    <option value="3">维修完成</option>
                </select>
                <input type="submit" value="查询" />
            </form>
            <table class="table table-hover table-bordered" style="margin-left:-10px; margin-top:20px;">
                <tr>
                    <th>编号</th>
                    <th>车号</th>
                    <th>车厢</th>
                    <th>报修名称</th>
                    <th>报修时间</th>
                    <th>问题发现人</th>
                    <th>审批状态</th>
                    <th>维修状态</th>
                    <th>评价</th>
                </tr>
                @{
                    foreach (var i in ViewBag.list)
                    {
                        <tr>
                            <td>@i.RepairsId</td>
                            <td>@i.WangonName</td>
                            <td>@i.RailWayName</td>
                            <td>@i.RepairsName</td>
                            <td>@i.FindDate</td>
                            <td>@i.FindPeople</td>
                            <td>@Html.Raw(i.ExamineState == 0 ? "未审核" : i.ExamineState == 2 ? "科长已审批" : i.ExamineState == 3 ? "局长已审批" : "审核驳回")</td>
                            <td>@Html.Raw(i.MaintainState == 0 ? "无" : i.MaintainState == 1 ? "已接单" : i.MaintainState == 2 ? "维修中" : "维修完成")</td>
                            <td>
                                @Html.Raw(i.MaintainState == 3 ? "<a href=\"/Repairs/ShowAppraise/?id=" + i.RepairsId + "\">维修评价</a>" : "")
                            </td>
                        </tr>
                    }
                }
            </table>

            <!--分页-->
            <nav class=" text-center">
                <ul id="pagination"></ul>
            </nav>
        </div>
        </div>
        <footer class="footer mt-20">
            <div class="container">
                <p>
                    关于我们  |  联系我们    |  项目合作  |  广告植入   |  友情链接<br />
                    版权所有 京ICP备11009069<br />
                    Copyright ©2016 Gaotie.cn
                </p>
            </div>
            <script src="~/Pageer/esimakin-twbs-pagination/jquery.twbsPagination.min.js"></script>
            <script type="text/javascript" src="~/H-ui/lib/My97DatePicker/4.8/WdatePicker.js"></script>
            <script type="text/javascript" src="~/H-ui/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
            <script type="text/javascript" src="~/H-ui/lib/laypage/1.2/laypage.js"></script>
            <script>
                $(function () {
                    $('#pagination').twbsPagination({
                        totalPages: '@ViewBag.TotalPage',
                        visiblePages: 3,
                        first: "首页",
                        prev: "上一页",
                        next: "下一页",
                        last: "尾页",
                        href: '/Repairs/RepairManage?PageIndex={{pageNumber}}',
                        hrefVariable: '{{pageNumber}}'
                    });
                })

            </script>
        </footer>
</body>
</html>
